package test11;

import com.tyfspring.context.support.ClassPathXmlApplicationContext;
import org.junit.Test;

/**
 * @Description TODO
 * @Author shallow
 * @Date 2023/4/14 20:04
 */

public class test {
    @Test
    public void test(){
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:test11/spring.xml");
        applicationContext.publishEvent(new CustomEvent(applicationContext,231321L,"收到订单！正在处理！"));
        applicationContext.registerShutdownHook();
    }
}
